home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / newconf / test.mk < prev   
Encoding:
Text File  |  1992-08-27  |  1.5 KB  |  52 lines

  1. #
  2. #    $Header: /private/postgres/newconf/RCS/test.mk,v 1.13 1991/02/24 09:13:42 mao Exp $
  3. #
  4.  
  5.  
  6. POSTGRES_OBJS = $(OD)/ACCESS.o $(OD)/COMMANDS.o $(OD)/EXECUTOR.o \
  7.         $(OD)/LIB.o $(OD)/PARSER.o $(OD)/PLANNER.o \
  8.         $(OD)/PORT.o $(OD)/REWRITE.o $(OD)/RULES.o \
  9.         $(OD)/STORAGE.o $(OD)/TCOP.o $(OD)/UTIL.o $(OD)/INH.o
  10.  
  11. # test: pprint teststubs testrules testbtree dumpbpages
  12. test: pprint teststubs testrules rtdump
  13.  
  14. libpq: $(OD)/libpq.a
  15.  
  16. $(OD)/libpq.a: $(LIBPQ)
  17.     @echo ar rvu libpq.a ...
  18.     @ar rvu $(OD)/libpq.a $(LIBPQ)
  19.     ranlib $(OD)/libpq.a
  20.  
  21. rtdump: $(OD)/test/rtdump
  22.  
  23. $(OD)/test/rtdump: $(RTDUMP) $(OD)/cinterface.a
  24.     $(CC) $(CFLAGS) -o $(OD)/test/rtdump \
  25.         $(RTDUMP) $(OD)/cinterface.a -lm -ll -lc
  26.  
  27. testbtree: $(OD)/test/testbtree
  28.  
  29. $(OD)/test/testbtree: $(TESTBTREE) $(OD)/cinterface.a
  30.     $(CC) $(CFLAGS) -o $(OD)/test/testbtree \
  31.         $(TESTBTREE) $(OD)/cinterface.a -lm -ll -lc
  32.  
  33. dumpbpages: $(OD)/test/dumpbpages
  34.  
  35. $(OD)/test/dumpbpages: $(OD)/cinterface.a $(DUMPBPAGES)
  36.     $(CC) $(CFLAGS) -o $(OD)/test/dumpbpages \
  37.         $(DUMPBPAGES) $(OD)/cinterface.a -lm -ll -lc
  38.  
  39. testrules:    $(OD)/test/testrules
  40. $(OD)/test/testrules:    $(TESTRULES) $(POSTGRES_OBJS)
  41.     $(CC) $(CFLAGS) -o $(OD)/test/testrules \
  42.         $(TESTRULES) $(POSTGRES_OBJS) -lm -ll -lc
  43.  
  44. teststubs:    $(OD)/test/teststubs
  45. $(OD)/test/teststubs:    $(TESTSTUBS) $(POSTGRES_OBJS)
  46.     $(CC) $(CFLAGS) -o $(OD)/test/teststubs \
  47.         $(TESTSTUBS) $(POSTGRES_OBJS) -lm -ll -lc
  48.  
  49. pprint:        $(OD)/test/pprint
  50. $(OD)/test/pprint:    $(OD)/test/pprint.o
  51.     $(CC) $(CFLAGS) -o $(OD)/test/pprint $(OD)/test/pprint.o
  52.